package cn.shiwei.hr;

import cn.shiwei.hr.interceptor.FeignHystrixConcurrencyStrategy;
import cn.shiwei.hr.interceptor.OAuth2FeignRequestInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;


@Import({OAuth2FeignRequestInterceptor.class, FeignHystrixConcurrencyStrategy.class})
@SpringBootApplication
@EnableEurekaClient
// 开启缓存
@EnableCaching
@EnableFeignClients(basePackages = "cn.shiwei.hr.fegin.search")
public class CourseApplication {
    public static void main(String[] args) {
        SpringApplication.run(CourseApplication.class);
    }
}
